import request from '@/utils/request'

// 查询监督反馈列表
export function listSupervise(query) {
  return request({
    url: '/wms/supervise/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/supervise/initBean',
        method: 'post'
    })
}

// 查询监督反馈详细
export function getSupervise(id) {
  return request({
    url: '/wms/supervise/' + id,
    method: 'get'
  })
}

// 新增监督反馈
export function addSupervise(data) {
  return request({
    url: '/wms/supervise',
    method: 'post',
    data: data
  })
}

// 修改监督反馈
export function updateSupervise(data) {
  return request({
    url: '/wms/supervise',
    method: 'put',
    data: data
  })
}

// 删除监督反馈
export function delSupervise(id) {
  return request({
    url: '/wms/supervise/' + id,
    method: 'delete'
  })
}
